home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming an RTS Game with Direct3D
/
Programming an RTS Game with Direct3D.iso
/
Examples
/
Chapter 5
/
Example 5.5
/
camera.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2006-06-29
|
359 b
|
23 lines
#ifndef _CAMERA
#define _CAMERA
#include <d3dx9.h>
#include "debug.h"
class CAMERA{
public:
//Init Camera
CAMERA();
void Init(IDirect3DDevice9* Dev);
//Calculate Matrices
D3DXMATRIX GetViewMatrix();
D3DXMATRIX GetProjectionMatrix();
IDirect3DDevice9* m_pDevice;
float m_fov;
D3DXVECTOR3 m_eye, m_focus;
};
#endif